<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>数组</title>
</head>
<body>
	<script type="text/javascript">
		// var one=["姓名","性别","年龄","籍贯"]
		// 	alert(one[2])


	var x
	var city = new Array()
		city[0] = "北京"
		city[1] = "广州"
		city[2] = "东莞"

	for (x in city){
		document.write(city[x] + "<br />")
	}
			



	
			


















	</script>
</body>
</html>